package com.tj.admin.auth.server.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.admin.auth.server.dao.AdminTokenDao;
import com.tj.admin.auth.server.entity.AdminTokenEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: anonymous
* Date: 2020-08-11
* Time: 10:34:14.265
*/

@Repository
public class AdminTokenDaoImpl extends AbstractBaseMapper<AdminTokenEntity> implements AdminTokenDao {

    @Override
    public AdminTokenEntity selectByToken(String token) {

        Map<String, Object> params = new HashMap<>();
        params.put("token", token);
        return getSqlSession().selectOne(this.getStatement("selectByToken"), params);
    }
}